<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title></title>
    <link rel="stylesheet" href="/css_system/common.css"/>
    <link rel="stylesheet" href="/css_system/main.css"/>
    <link href="/js_system/jQueryUI/jquery-ui.css" rel="stylesheet">
    <!-- 对话框 -->
    <link rel="stylesheet" href="/js_system/easydialog/easydialog.css"/>
    <script type="text/javascript" src="/js_system/easydialog/easydialog.js"></script>
    <script type="text/javascript" src="/js_system/cueeasy.js"></script>
    <script type="text/javascript" src="/js_system/jquery.min.js"></script>

</head>
<body>
<div class="container">
    <div class="location clearfix">
        <div class="here_area fl"><strong>当前位置：</strong>会员管理&nbsp;&nbsp;&raquo;&nbsp;&nbsp;会员列表</div>
        <div class="here_btn fr">
            <a href="javascript:history.back()" class="btn btn_back">返回</a>
            <a href="javascript:;" onclick="location.replace(location.href);" class="btn btn_refresh">刷新</a>
        </div>
    </div>


    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">基本信息</a></li>
            <li><a href="#tabs-2">支付记录</a></li>
        </ul>
        @include('common.errors')
        <form action="/admin_system/member/editAction?userId={{$entMemberInfo->UserID}}" method="post">
            <div id="tabs-1">
                @include('common.alert-url')
                <table class="dataTable">
                    <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                    <tbody>
                    <tr>
                        <td class="ltd">会员状态</td>
                        <td class="rtd">
                            <select style="width:200px;" class="select" name="states">
                                @foreach($memberStates as $state)
                                    <option @if($state['value'] == $entMemberInfo->States) selected="selected" @endif value="{{$state['value']}}">{{$state['name']}}</option>
                                @endforeach
                            </select>
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">手机号</td>
                        <td class="rtd">
                            <input  value="{{$entMemberInfo->UserName}}" class="input-text" type="text" name="mobile"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd">姓名</td>
                        <td class="rtd">
                            <input value="{{$entMemberInfo->YourName}}" class="input-text" type="text" name="yourName"/>
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">昵称</td>
                        <td class="rtd">
                            <input value="{{$entMemberInfo->NickName}}" class="input-text" type="text" name="nickName"/>
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">学习官</td>
                        <td class="rtd">
                            <input value="{{$cloInfo->name}}" id="cloName" class="input-text" readonly>
                            <input type="hidden" id="cloUserId" name="cloUserId" value="{{$cloInfo->userId}}">
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">会员到期时间</td>
                        <td class="rtd">
                            <input  value="{{$entMemberInfo->personal_end_time}}" class="input-text" type="date" name="memEndtime"/>
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">积分</td>
                        <td class="rtd">
                            <input  value="{{$entMemberInfo->MemIntegral}}" class="input-text"  name="integral"/>
                        </td>
                    </tr>

                    <tr>
                        <td class="ltd">AppID</td>
                        <td class="rtd">
                            <input value="{{$entMemberInfo->AppKey}}" class="input-text"  name="appKey"/>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>


            {{--会员缴费记录--}}
            <div id="tabs-2">
                <table class="dataTable commonTable">
                    <thead>
                    <tr>
                        <th class="text-left" width="150">单号</th>
                        <th class="text-left" >会员账号</th>
                        <th class="text-left" width="150">姓名</th>
                        <th class="text-left" width="150">支付时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($orderlog as $dataTwo)
                        <tr>
                            <td class="text-left">{{$dataTwo->OrderNumber}}</td>
                            <td class="text-left">{{$dataTwo->UserName}}</td>
                            <td class="text-left">{{$dataTwo->YourName}}</td>
                            <td class="text-left">{{$dataTwo->AddDate}}</td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>

            {{--提交按钮--}}
            <div class="contBtn">
                <table class="dataTable">
                    <tfoot>
                    <tr>
                        <td class="ltd"></td>
                        <td class="rtd">
                            <input type="submit" class="btn btn_save"  value="保存">
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </form>
    </div>
</div>

@include('admin_system/layout/include_members',['idInput'=>'cloUserId','nameInput'=>'cloName'])
<script src="/js_system/jQueryUI/jquery-ui.js"></script>
<script src="/js_system/jqueryui.js"></script>
</body>
</html>